#ifndef CONFIG
#define CONFIG

#include "../math/vector2d.h"
#include "../os/string.h"

namespace sleek
{
    namespace core
    {
        namespace device
        {
            class Config
            {
                public:
                    Config();
                    virtual ~Config();

                    void read(os::stringc);
                    void write(os::stringc);

                    void setFullScreen(bool t)               { fullscreen = t;     }
                    void setScreenSize(math::vector2du size) { screen = size;      }
                    void setScreenBits(u8 size)              { screen_bits = size; }

                    math::vector2du getScreenSize() { return screen;      }
                    u8       getScreenBits()        { return screen_bits; }
                    bool     getFullScreen()        { return fullscreen;  }

                private:
                    bool fullscreen;
                    math::vector2du screen, splash;
                    u8 screen_bits;
            };
        }
    }
}

#endif
